texthistory: fix calculation of n_chars
authorChristian Hergert <chergert@redhat.com>
Fri, 16 Jul 2021 02:19:57 +0000 (19:19 -0700)
committerChristian Hergert <chergert@redhat.com>
Fri, 16 Jul 2021 04:26:30 +0000 (21:26 -0700)
commit5d02a8f5dbe285a6ff48884520a17c348bcc6774
treefeeec745b3a2937adeb0e4989172be726b267653
parent2d092ea28042293fedf5f5dc841975faf9d738f1
texthistory: fix calculation of n_chars

This should be the number of characters, not the end position. This fixes
an issue where we wouldn't coalesce insert actions together.
gtk/gtktexthistory.c
testsuite/gtk/texthistory.c